package excercise;

public class EX02_016 {
	
	public static void main(String[] args) {
		
		int n = 1;	int k = 2;	int r = n;
		if(k < n ) r = k;
		System.out.println("" + n + k + r);
		
		n = 1; k = 2; r = 0;
		if(n < k) r = k; else r = k + n;
		System.out.println("" + n + k + r);
		
		n = 1; k = 2; r = k;
		if(r < k) n = r; else k = n;
		System.out.println("" + n + k + r);
		
		n = 1; k = 2; r = 3;
		if(r < n +k) r = 2 * n; else k = 2 * r;
		System.out.println("" + n + k + r);
	}

}
